package redmi

import (fm "learning/gooop/creational_patterns/factory_method")

func init() {
	fm.DefaultFactoryRegistry.Set("redmi", newRedmiLightFactory())
}

type tRedmiLightFactory struct {
}

func newRedmiLightFactory() fm.ILightFactory {
	return &tRedmiLightFactory{}
}

func (me *tRedmiLightFactory) Create(info *fm.LightInfo) (error, fm.ILight) {
	return nil, newRedmiLight(info)
}
